# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/26 下午5:53
 @Author  : tgy
 
"""
import os
from itertools import dropwhile



def read(path):
    ...
    if not os.path.exists(path) or not os.path.isfile(path):
        return

    with open(path,mode='rt',encoding='utf-8') as f:
        for line in dropwhile(lambda line:line.startswith('#'),f):
            ...
            print(line)



if __name__ == '__main__':
    ...
    read('./4.5 反向迭代.py')